const {Sequelize, DataTypes} = require("sequelize");
const start = require("./utils/connect");

(async()=>{
  const sequelize = await start();
  const User = sequelize.define("User",{
    firstName:{
      type:DataTypes.STRING,
      allowNull:false
    },
    lastName:{
      type:DataTypes.STRING
    }
  },{
    freezeTableName:true // 强制使用定义表名
  });


  await User.sync({
    // force:true,
    // alter:true
  });

  console.log("模型同步成功");


})()